package Test;

import com.mapper.Person;
import com.utlis.MyBatisUtlis;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

public class PersonTest {
    @Test
    public void findpersonByIdTest() {
        SqlSession sqlSession = MyBatisUtlis.getSession();
        Person person = sqlSession.
                selectOne("com.mapper.PersonMapper.findPersonById", 1);
        System.out.println(person);
        sqlSession.close();
    }
}